/*
 * @Author: wuqingchun
 * @Date: 2024-03-24 14:44:19
 * @Description: 
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-03-24 21:13:36
 */
#ifndef __UTCP_PACKET_H__
#define __UTCP_PACKET_H__

#include <stdint.h>

enum
{
    UTCP_FLAG_SYNC = 0x1,
    UTCP_FLAG_ACK  = 0x2,
};


typedef struct tagUTCPHdr
{
    uint32_t Flags;    // 类型
    uint32_t Length;  // 长度
    uint16_t Chksum;  // 校验和
    uint32_t Sqn;     // 请求序号
    uint32_t AckSqn;  // 确认序号
}UTCP_HDR_S;


typedef struct tagUTCPSyncBody
{
    uint32_t Addr;
    uint16_t Port;
}UTCP_SYNC_BODY_S;

#endif //__UTCP_PACKET_H__